package com.ruoyi.quality.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;
import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分级得分业务对象 quality_classification_data
 *
 * @author ruoyi
 * @date 2023-12-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class QualityClassificationDataBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long itemsId;

    /**
     * 父级id
     */
    @NotNull(message = "父级id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 得分
     */
    @NotNull(message = "得分不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal grade;

    /**
     * 年度
     */
    @NotBlank(message = "年度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String date;

}
